#include <stdio.h>

void pascalTriangle (int n)
{
    int result = 1;
            for(counterSecondLoop = 0; counterSecondLoop < numberRows - counterFirstLoop; counterSecondLoop++)
            {
                  printf("%1s", " ");
            }
            for (counterThirdLoop = 0; counterThirdLoop <= counterFirstLoop; counterThirdLoop++)
            {
                  printf("%1d ",result);
                  result = result * (counterFirstLoop - counterThirdLoop) / (counterThirdLoop + 1);
            }
            printf("\numberRows");
    pascalTriangle(n-1);
}


int main()
{
  int numberRows, counterThirdLoop, counterFirstLoop, result, counterSecondLoop;
  printf("Pascal Triangle Program\numberRows");
  printf("Enter the number of rows: ");
  scanf("%d",&numberRows);

  for (counterFirstLoop = 0; counterFirstLoop < numberRows; counterFirstLoop++)
  {

  }
  printf("\numberRows");
  return 0;
  }
